package testDemo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-18
 * Time: 17:44
 */

//抽象类animal ，仅用来被继承
public abstract class Animal {
    public String name;

    //抽象方法:
    public abstract void eat();

    //构造方法:
    public Animal(String name) {
        this.name = name;
    }
}
